Managing Environments with Miniconda

The previous article explains how to properly install and configure Miniconda. This article will explain how to manage your environments.

Creating a Virtual Environment

This command will create a virtual environment with the following properties:

  • -n myenv You can choose any name you want here
  • python=3.7 you can set the version to be whatever you want such as 2.7 (if you don't specify a version it will choose the latest)
  • -y this just preemptively answers yes to creating the environment

Activating a Virtual Environment

Deactivating a Virtual Environment

Listing Available Environments

Removing an Environment

Cloning an Environment

Removing PS1 Prompt

To re-enable:

Searching for packages

Sharing an environment

  • First export the environment
  • Now install in another Anaconda Environment Manager

Installing Packages & Pinning Versions

  • With conda (=)
  • With pip (==)

Tagged in miniconda